#include "MainApplication.h"

#include <windows.h>
#include <DirectXMath.h>

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE previousInstance, PSTR cmdLine, int showCmd)
{
	// Enable run-time memory check for debug builds.
#if defined(DEBUG) | defined(_DEBUG)
	_CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
#endif

    if (!DirectX::XMVerifyCPUSupport())   
        return -1;

	D3D10::MainApplication mainApplication(hInstance);
	
	mainApplication.init();

	return mainApplication.run();
}
